|
SEND NET MESSAGE SOUND
This command will send a message containing a sound to the specified player.
SEND NET MESSAGE SOUND Player Number, Sound Number, Guarentee Packet
Player Number
Integer
The Player Number must be an integer value and an existing player in the net game. A Player Number of zero will send the message to all players except you
Sound Number
Integer
The number of the sound to send
Guarentee Packet
Integer
The Guarantee Packet Flag, if set to one, will ensure the message is received and will not be dropped due to slow system performance
This command does not return a value.
The Player Number must be an integer value and an existing player in the net game. A Player Number of zero will send the message to all players except you. The Guarantee Packet Flag, if set to one, will ensure the message is received and will not be dropped due to slow system performance.
rem Network game can communicate sounds, images and 3D data
while inkey$()<>"z"
cls
print "SENDING..."
GuarenteePacket=1
load sound "gun.wav", 1
send net message sound 0, 1, GuarenteePacket
delete sound 1
rem Receive Part (from all other players)
get net message
if net message exists()=1 then print "RECEIVING..."
while net message exists()=1
if net message type()=7
net message sound 1
endif
get net message
endwhile
endwhile
MULTIPLAYER Commands Menu
Index
|